package pack0622;

public class ZuoYe3 {
    public static void main(String[] args) {
        int a, b, c;
        int sum = 0;
        for (a = 1; a <= 3; a++) {
            for (b = 1; b <= 3; b++) {
                for (c = 1; c <= 3; c++) {
                    if (c != a && c != b && a != b) {
                        System.out.println(a + "" + b + "" + c);
                        sum++;
                    }
                }
            }
        }
        System.out.println("三位数个数："+sum);
    }
}


